x86: extend runstate area updates
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Aug 2009 12:01:41 +0000 (13:01 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Aug 2009 12:01:41 +0000 (13:01 +0100)
commitcf8b52ff53eb09ca463f67067369b22863356c61
tree9f60a9aca2557ad3390a899bcedc85077e9158dd
parent95fe89367e89045575c246a7edf78b51ddfe6a0e
x86: extend runstate area updates

In order to give guests a hint at whether their vCPU-s are currently
scheduled (so they can e.g. adapt their behavior in spin loops),
update
the run state area (if registered) also when de-scheduling a vCPU.

Also fix an oversight in the compat mode implementation of
VCPUOP_register_runstate_memory_area.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/domain.c
xen/arch/x86/x86_64/domain.c